package pri.hillchen.springbootstd.bms.entity.system;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author hillchen
 * @since 2017-10-19
 */
@TableName("sys_resource")
public class Resource implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
	private Long id;
    /**
     * 是否为菜单(0:非菜单资源,1:菜单资源,)
     */
	@TableField("is_menu")
	private Integer isMenu;
    /**
     * 资源名
     */
	@TableField("resource_name")
	private String resourceName;
    /**
     * 访问类型(0:免登陆资源,1:免权限资源,2:访问权限资源,3:数据权限资源)
     */
	@TableField("visit_type")
	private Integer visitType;
    /**
     * 资源访问地址
     */
	@TableField("resource_url")
	private String resourceUrl;
    /**
     * 上级资源id
     */
	@TableField("parent_id")
	private Long parentId;
    /**
     * 备注
     */
	private String remark;
    /**
     * 可用标志
     */
	@TableField("is_available")
	private Integer isAvailable;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getIsMenu() {
		return isMenu;
	}

	public void setIsMenu(Integer isMenu) {
		this.isMenu = isMenu;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public Integer getVisitType() {
		return visitType;
	}

	public void setVisitType(Integer visitType) {
		this.visitType = visitType;
	}

	public String getResourceUrl() {
		return resourceUrl;
	}

	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getIsAvailable() {
		return isAvailable;
	}

	public void setIsAvailable(Integer isAvailable) {
		this.isAvailable = isAvailable;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "Resource{" +
			"id=" + id +
			", isMenu=" + isMenu +
			", resourceName=" + resourceName +
			", visitType=" + visitType +
			", resourceUrl=" + resourceUrl +
			", parentId=" + parentId +
			", remark=" + remark +
			", isAvailable=" + isAvailable +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
